package com.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.to.AuthSocialUserTo;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.member.entity.MemberEntity;
import com.gulimall.member.exception.PhoneExistsException;
import com.gulimall.member.exception.UsernameExistsException;
import com.gulimall.member.vo.MemberLoginVo;
import com.gulimall.member.vo.MemberRegisterVo;

import java.util.Map;

/**
 * 会员
 *
 * @author kkk
 * @email 2017809755@qq.com
 * @date 2022-05-17 21:59:00
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void registerMember(MemberRegisterVo registerVo);

    void checkMemberPhone(String phone) throws PhoneExistsException;

    void checkMemberUsername(String username) throws UsernameExistsException;

    MemberEntity loginMember(MemberLoginVo loginVo);

    MemberEntity oAuthLogin(AuthSocialUserTo socialUserTo);
}

